
import { RouteRecordRaw } from "vue-router";

// 权限管理相关路由
const setingRoutes:RouteRecordRaw[] = [
    {
        path:"/setting",
        component:()=>import("../layout/index.vue"),
        children:[
           {
            path:"permission",
            component:()=>import("../views/setting/permissions/index.vue"),
            children:[
                {
                    path:"admin",
                    component:()=>import("../views/setting/permissions/admin/index.vue"),
                    meta:{
                        title:"管理员"
                    }
                   },
                   {
                    path:"role",
                    component:()=>import("../views/setting/permissions/role/index.vue"),
                    meta:{
                        title:"角色"
                    }
                   },
                   {
                    path:"menu",
                    component:()=>import("../views/setting/permissions/menu/index.vue"),
                    meta:{
                        title:"菜单权限"
                    }
                   },
                   
            ],
            meta:{
                title:"权限管理"
            }
           },
   
        ],
        meta:{
            title:"设置"
        }
    }
]


export default setingRoutes